﻿using UnityEngine;
using System.Collections;

public class MsgController : MonoBehaviour {

	// Use this for initialization
	void Start () {
	
	}
	
	// Update is called once per frame
	void Update () {
	
	}

    public void OnMsg() {
        GameMsg gameMsg = new GameMsg();
        gameMsg.Code = GameMsgCode.Gate_UserLogin;
        ByteBuffer byteBuffer = new ByteBuffer(0);
        byteBuffer.WriteUTF("d326ad3c-ad63-4f6b-8bd9-e3bc620dc64f");
        byteBuffer.WriteUTF(null);
        gameMsg.Content = byteBuffer;
        SocketClientManager.GetInstance().Send(gameMsg);
        Debug.Log("发送登录:" + GameMsgCode.Gate_UserLogin);
    }
}
